package ${info.controllerPackage};

import ${info.servicePackage}.${info.serviceName};
import ${info.servicePackage}.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
* @author abel.lin
* @date_time ${.now?string("yyyy-MM-dd HH:mm")}
* @description
*/
@Controller
public class ${info.controllerName} extends BaseController {

    @Autowired
    private ${info.serviceName} ${info.serviceName?uncap_first};

    @Override
    protected BaseService getBaseService() {
        return this.${info.serviceName?uncap_first};
    }

    @Override
    protected String getPrefix() {
        return "platform/${info.tableFirstName}/${info.jspName}-";
    }

    @RequestMapping("data")
    @ResponseBody
    @Override
    public String data(HttpServletRequest request, HttpServletResponse response,
    @RequestParam(value = "page", required = false) int page,
    @RequestParam(value = "rows", required = false) int rows) throws IOException {
        return null;
    }

}